package eop.graham

import java.util.List;

class Experiment {
	String experimentTitle
	Date dateCreated
	String researcher
	String description

	static List RESEARCH_TEAM = ["Denis", "Sara", "Bruno", "test", "Test"]
	
	static hasMany = [data:Data]
	
	static constraints = {
		experimentTitle (nullable:false)
		dateCreated (unique:true)
		researcher(inList:RESEARCH_TEAM)
		description(maxSize:1000)
	}
}
